package com.zang.blogz.model.output.admin;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zang.blogz.entity.Tag;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Author: 橘贝贝
 * @Description:  管理员页，文章列表
 * @DateTime: 2022/7/12 15:18
 **/
@Data
public class AdminArchiveVO implements Serializable {
    @ApiModelProperty("文章封面")
    private String articleCover;

    @ApiModelProperty("标题")
    private String articleTitle;

    @ApiModelProperty("文章类型 1原创 2转载 3翻译")
    private String type;

    @ApiModelProperty("是否置顶 0否 1是")
    private Boolean isTop;

    @ApiModelProperty("标签列表")
    private List<Tag> tagList;

    @ApiModelProperty("文章分类名")
    private String categoryName;

    @ApiModelProperty("访客数")
    private Long traffic;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
